package com.hcw.bankdemo.service;

import java.math.BigDecimal;

/**
 * @ClassName AccountService
 * @description:账户服务类
 * @author: hcw
 * @time: 2020/8/29 11:01
 */
public interface AccountService {

    //转账接口
    boolean transferMoney(String fromName, String toName, BigDecimal money);

    //转款方的转款服务
    public boolean fromAccoutTransfer(String fromName,String toName,BigDecimal money);

    //转款的逆向服务（转款成功后 ，收款失败务失败了 回滚收款方数据）
    public boolean noFromAccoutTransfer(String fromName,String toName,BigDecimal money,int aId);


}